package com.avic.modules.historicalData.rest;

import com.avic.modules.historicalData.service.HistoricalDataService;
import org.springframework.stereotype.Component;

import java.sql.SQLException;

@Component
public class AddHistoricalDataTask {

    private final HistoricalDataService historicalDataService;

    public AddHistoricalDataTask(HistoricalDataService historicalDataService) {
        this.historicalDataService = historicalDataService;
    }

    public void runAddHistoricalData() throws SQLException {
        historicalDataService.add();
    }

}
